package com.contory.ssn_lgnd.app.maingame.event;

import android.util.Log;

import com.contory.ssn_lgnd.app.maingame.Enemy;
import com.contory.ssn_lgnd.app.maingame.EnemyGroup;
import com.contory.ssn_lgnd.app.maingame.EnemyManager;
import com.contory.ssn_lgnd.app.maingame.EventObjectPtr;

public class EnemyCreateEvent implements EventObjectPtr{
	final EnemyManager enemyMG;
	final EnemyGroup enemyGroup;
	float strX;
	float strY;
	
	public EnemyCreateEvent(EnemyManager enemyMG, EnemyGroup enemyGroup, float strX, float strY){
		this.enemyMG = enemyMG;
		this.enemyGroup = enemyGroup;
		this.strX = strX;
		this.strY = strY;
		//this.enemyGroup.getSize();
		//this.enemyGroup.addEnemy(strX, strY);
		//Log.d("1", String.valueOf(enemyMG.getCurEnemyGroup(this.enemyGroup)));
	}
	
	@Override
	public void excute() {
		//Log.d("1", "1");
		//Log.d("1", String.valueOf(enemyMG.getCurEnemyGroup(this.enemyGroup)));
		this.enemyGroup.addEnemy(strX, strY);
	}

	@Override
	public boolean getEndBool() {
		return true;
	}

}
